/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package CODE;


import DATA.handBD;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Administrator
 */
public class handAlumno {

    handBD alum_bd;
    public handAlumno() throws SQLException {
        alum_bd = new handBD();
    }
    public int verifica (String cod) throws SQLException
    {

        int rpta =1; // alum.verificaCodAlu(cod);
        if (rpta==1)
        {
            return rpta;
        }
        else
        {
            return rpta = 0;
        }
    }

public ArrayList<String> ObtenerDatos_alum (String cod)
    {
        ArrayList<String> datos = new ArrayList<String>();
        datos = alum_bd.ObtenerDatos("alum", cod);
        Iterator it= datos.iterator();

        while(it.hasNext())
        {
            System.out.println(it.next().toString());
        }
        return datos;
    }

    public void Guardar(ArrayList<String> datos_panel) {

        System.out.println("vamoleees");
        alum_bd.Guardar_Datos(datos_panel,"alumno");
    }

}
